Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Creating Paths Using Only Off-Curve Points

The next example shows how you can create a path using only off-curve control points. The path defined in this example contains four control points, and the controlBits field is set to

0xF0000000    /* 1111 0000 0000 0000 0000 ... */

which indicates that the first four points are off curve. The path contains only four points, and therefore they are all off curve.

The four off-curve control points in this example form a square; the path that they define is a rounded square, as shown in Figure 12 .

Figure 12 A round path shape

Notice that the path is filled with the even-odd shape fill, which is the default for path shapes. You could, however, specify any shape fill for this path except the open-frame shape fill. The open-frame shape fill requires that the first and last points of the contour be on-curve points, and this path has no on-curve points.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |